
using AutoMapper;
using HCD.Entities;
using HCD.Entities.Dtos;

namespace HCD.Mdt.Dtos
{
	public static class CustomMdtMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap<MdtMasterApplyInput, MdtMaster>();
            configuration.CreateMap<MdtMasterApplyInput, MdtGroup>();
            configuration.CreateMap<MdtGroupUserApplyInput, MdtGroupUser>();

            configuration.CreateMap<MdtMasterDto, MdtMaster>();
            configuration.CreateMap<MdtMaster, MdtMasterDto>();

            configuration.CreateMap<MdtMasterAddInput, MdtMaster>();
            configuration.CreateMap<MdtMaster, MdtMasterAddInput>();

            configuration.CreateMap<MdtMasterEditInput, MdtMaster>();
            configuration.CreateMap<MdtMaster, MdtMasterEditInput>();

            configuration.CreateMap <MdtOrder,MdtOrderDto>();
            configuration.CreateMap <MdtOrderDto,MdtOrder>();

            configuration.CreateMap <MdtOrderEditInput,MdtOrder>();
            configuration.CreateMap <MdtOrder,MdtOrderEditInput>();

            configuration.CreateMap<MdtOrderAddInput, MdtOrder>();
            configuration.CreateMap<MdtOrder, MdtOrderAddInput>();

            configuration.CreateMap<MdtCommentEditInput, MdtComment>();
            configuration.CreateMap<MdtComment, MdtCommentEditInput>();

            configuration.CreateMap<MdtCommentDto, MdtComment>();
            configuration.CreateMap<MdtComment, MdtCommentDto>();

            configuration.CreateMap<MdtGroupDto, MdtGroup>();
            configuration.CreateMap<MdtGroup, MdtGroupDto>();

            configuration.CreateMap<MdtGroupUserDto, MdtGroupUser>();
            configuration.CreateMap<MdtGroupUser, MdtGroupUserDto>();
        }
	}
}
